<ul class="layui-nav">
	{foreach $fromKV as $k => $v}
		<li class="layui-nav-item {if $k == $thisFrom}layui-this{/if}"><a href="{:url()}?from={$k}&factory_id={$thisFactoryId}">{$v}</a></li>
	{/foreach}
</ul>
<ul class="layui-nav layui-bg-green">
	{foreach $factoryKV as $factoryId => $factoryName}
		<li class="layui-nav-item {if $factoryId == $thisFactoryId}layui-this{/if}"><a href="{:url()}?from={$thisFrom}&factory_id={$factoryId}">{$factoryName}</a></li>
	{/foreach}
	<li class="layui-nav-item menu_action" onclick="menu_action(this)" style="font-size: 20px;">&nbsp;&nbsp;<</li>
</ul>
<script src="__PUBLIC_JS__/jquery.2.1.4.min.js?v={:config('hisiphp.version')}"></script>
<script src="__PUBLIC_JS__/xm-select/dist/xm-select.js?v={:config('hisiphp.version')}"></script>
<script src="__PUBLIC_JS__/vue@3.2.26/dist/vue.global.js"></script>
<script>
	function menu_action(_this) {
		if($('.layui-nav.layui-bg-green').find('li:eq(11)').is(':hidden')==true){
			$('.layui-nav.layui-bg-green').find('li:eq(10)').show();
			$('.layui-nav.layui-bg-green').find('li:eq(11)').show();
			$(_this).html("&nbsp;&nbsp;<");
			$('.gccnfx_table').find('th:eq(10)').show();
			$('.gccnfx_table').find('th:eq(11)').show();
			$('.gccnfx_table').find('.gccnfx_table_td').parent().show();
		}else{
			$('.layui-nav.layui-bg-green').find('li:eq(10)').hide();
			$('.layui-nav.layui-bg-green').find('li:eq(11)').hide();
			$(_this).html("&nbsp;&nbsp;>");

			$('.gccnfx_table').find('th:eq(10)').hide();
			$('.gccnfx_table').find('th:eq(11)').hide();
			$('.gccnfx_table').find('.gccnfx_table_td').parent().hide();
		}
	}
</script>